package cn.lsc.userbroke;

import cn.lsc.domain.User;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;


public class UserBroke {
    public static User degradationMethod(@PathVariable("id")Long id, BlockException e){
        e.printStackTrace();
        return new User(-1L,"触发限流","别点了 你爹我遭不住了 cnmd！！！！");
    }
}
